<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/11/30
 * Time: 10:32
 */
namespace  animal;

class bird
{
 public $name;
 protected $type;
 static public $age;
 function  __construct()
 {

     echo '我是鸟';
     echo '<br/>';
 }

 function fly(){
     echo '鸟会飞';
     echo '<br/>';
 }
 function say($age){
     self::$age=$age;
     echo '我已经活了'.self::$age.'年了';
     echo '<br/>';
 }
 function __destruct()
 {
     // TODO: Implement __destruct() method.
     echo 'the end';
     echo '<br/>';
 }
}